package com.lwc.cfdns.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 本地附件配置
 *
 * @author luwc
 * @title AttachmentLocalConfig
 * @description
 * @time 2023/9/19 15:49:12
 * @version: 1.0
 */
@ConfigurationProperties(prefix = "app.attachment.local")
@Configuration
public class AttachmentLocalConfig {
    private static String uploadPath;
    private static String uploadDomain;

    public static String getUploadPath() {
        return uploadPath;
    }

    public synchronized void setUploadPath(String uploadPath) {
        AttachmentLocalConfig.uploadPath = uploadPath;
    }

    public static String getUploadDomain() {
        return uploadDomain;
    }

    public synchronized void setUploadDomain(String uploadDomain) {
        AttachmentLocalConfig.uploadDomain = uploadDomain;
    }
}
